using System.IO;
using BSDS.Core.Infrastructure.Logging;

namespace BSDS.Core.Infrastructure.TransferProgress
{
    public class ReportingStreamFactory
    {
        private readonly Logger logger;

        internal ReportingStreamFactory(Logger logger)
        {
            this.logger = logger;
        }

        public Stream Create(Stream baseStream, long sizeInBytes)
        {
            return new WriteProgressReportingStream(baseStream, sizeInBytes, logger);
        }
    }
}